package com.ruoyi.crm.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 活动管理对象 tb_activity
 * @author ruoyi
 * @date 2022-06-07
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Activity extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 活动名称 */
    @Excel(name = "活动名称")
    private String name;

    /** 渠道来源 */
    @Excel(name = "渠道来源")
    private String channel;

    /** 活动简介 */
    @Excel(name = "活动简介")
    private String info;

    /** 活动类型 */
    @Excel(name = "活动类型")
    private String type;

    /** 璇剧▼鎶樻墸 */
    @Excel(name = "璇剧▼鎶樻墸")
    private Float discount;

    /** 课程代金券 */
    @Excel(name = "课程代金券")
    private Integer vouchers;

    /** 状态 */
    @Excel(name = "状态")
    private String status;

    /** 开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date beginTime;

    /** 结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endTime;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private String code;
}
